/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ticks.chromedome.subsystems;

import edu.wpi.first.wpilibj.SpeedController;
import edu.wpi.first.wpilibj.Victor;
import edu.wpi.first.wpilibj.command.Subsystem;
import ticks.chromedome.RobotMap;
import ticks.chromedome.commands.ElevatorStop;

/**
 *
 * @author Jared
 */
public class Elevator extends Subsystem {
    private static Elevator instance = null;
    private SpeedController elevator_motor;
    // Put methods for controlling this subsystem
    // here. Call these from Commands.
    public static Elevator getInstance(){
        if(instance==null){
            instance = new Elevator();
        }
        return instance;
    }
    
    private Elevator(){
        elevator_motor = new Victor(RobotMap.ELEVATOR_MOTOR);
       
    }
    
    public void elevatorSetSpeed(double speed){
        elevator_motor.set(speed);
    }
    
    public void initDefaultCommand() {
        setDefaultCommand(new ElevatorStop());
        // Set the default command for a subsystem here.
        //setDefaultCommand(new MySpecialCommand());
    }
}
